﻿using Ewell.Interface.Common.Model;
using Ewell.Interface.Common.Model.Constant;
using Ewell.Interface.Common.Model.GateWay.Dto;
using Ewell.Interface.Common.Model.GateWay.Dto.Dict;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ewell.Interface.Common.Model.GateWay.GateWayUriInfo
{
    /// <summary>
    /// 字典缓存
    /// </summary>
    public class InterfaceManagementDubboService : GateWayUri
    {
        public override string url  => "dubbo/cc.ewell.his.dict.service.inter.dubbo.InterfaceManagementDubboService";
        /// <summary>
        /// 【2-100019-01】根据条件查询外部接口列表
        /// </summary>
        public GateWayMethod queryExternalInterfaceListByExample => new QueryExternalInterfaceListByExample(this.url);
    }
    /// <summary>
    /// 【2-100019-01】根据条件查询外部接口列表
    /// </summary>
    public class QueryExternalInterfaceListByExample : GateWayMethod
    {
        public QueryExternalInterfaceListByExample(string baseUrl) : base(baseUrl)
        {
        }
        public override string methodName => "queryExternalInterfaceListByExample";
        public override string paramClass => "co.faao.plugin.page.PageHeader";

        public override DubboParamType paramType => DubboParamType.messageheaderDoamin;

        public override Type requestParamType => typeof(ExInterfaceReq);

        public override Type responseParamType => typeof(PageInfo<ExInterfaceResp>);

        public override string desc => "【2-100019-01】根据条件查询外部接口列表";
    }
    
}
